From: Yosef Or Boczko Date: Wed, 11 Dec 2013 20:36:15 +0000 (+0200) Subject: authPrompt: Explicitly set horizontal alignment X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2993 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=49189e0e436e93a3494157697e490ad4540918f2;p=gnome-shell.git authPrompt: Explicitly set horizontal alignment When set to fill, the label will always end up left-aligned, which is only correct in LTR locales. Set the alignment explicitly to work in both RTL and LTR locales. https://bugzilla.gnome.org/show_bug.cgi?id=712638 --- diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index 996b363f0..7a3cf0a29 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -93,7 +93,7 @@ const AuthPrompt = new Lang.Class({ this.actor.add(this._label, { expand: true, - x_fill: true, + x_fill: false, y_fill: true, x_align: St.Align.START }); this._entry = new St.Entry({ style_class: 'login-dialog-prompt-entry', @@ -111,7 +111,7 @@ const AuthPrompt = new Lang.Class({ this._message = new St.Label({ opacity: 0, styleClass: 'login-dialog-message' }); this._message.clutter_text.line_wrap = true; - this.actor.add(this._message, { x_fill: true, y_align: St.Align.START }); + this.actor.add(this._message, { x_fill: false, x_align: St.Align.START, y_align: St.Align.START }); this._buttonBox = new St.BoxLayout({ style_class: 'login-dialog-button-box', vertical: false });